<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>CSS浮动</title>
    <style>
        div{
            width: 200px;
            height: 200px;
        }

        #d1{
            background-color: lightblue;
            float: left;
        }
        #d2{
            background-color: lightcoral;
            float: right;
        }
        #d3{
            background-color: lightseagreen;
            clear: both;
        }

        ul li{
            float: left;
            margin-left: 30px;
            list-style: none;
        }

        a{
            text-decoration: none;
            color: black;
        }

        a:hover{
            color: red;
        }
    </style>
</head>
<body>
    <div id="d1"></div>
    <div id="d2"></div>
    <div id="d3"></div>

    <ul>
        <li><a href="#">川系菜单</a></li>
        <li><a href="#">湘系菜单</a></li>
        <li><a href="#">徽系菜单</a></li>
    </ul>
</body>
</html>